<script type="text/html" template lay-done="layui.data.sendParams(d.params)">
  <div class="layui-form" lay-filter="form_online">
    <div class="layui-form-item">
      <label class="layui-form-label">商品编码</label>
      <div class="layui-input-inline layui-form-mid layui-word-aux" style="width: 400px">
        {{d.params.contract_address}}
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">发行数量</label>
      <div class="layui-input-inline layui-form-mid layui-word-aux" style="width: 400px">
        {{d.params.issue_count}}
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">已售数量</label>
      <div class="layui-input-inline layui-form-mid layui-word-aux" style="width: 400px">
        {{d.params.issue_count - d.params.available_tokens_count}}
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">是否锁定</label>
      <div class="layui-input-inline">
        <input type="checkbox" name="is_locked" lay-skin="switch" lay-text="是|否"
               {{d.params.configs.is_locked==1?'checked':''}}>
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">交易渠道</label>
      <div class="layui-input-inline">
        <select name="exchange_channel" class="layui-select">
          <option value="hezhi" {{ d.params.configs.exchange_channel==='hezhi'?'selected':'' }}>禾只</option>
          <!--          <option value="ding_block" {{ d.params.configs.exchange_channel==='ding_block'?'selected':'' }}>盯链</option>-->
          <!--          <option value="xmeta" {{ d.params.configs.exchange_channel==='xmeta'?'selected':'' }}>XMETA</option>-->
          <option value="hjs" {{ d.params.configs.exchange_channel==='hjs'?'selected':'' }}>合交所</option>
        </select>
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label"></label>
      <div class="layui-input-inline layui-form-mid layui-word-aux" style="width: 400px">
        资产锁定后才能将商品添加到交易所，本地商品不可继续发行，不可转售
      </div>
    </div>
    <div class="layui-form-item">
      <div class="layui-footer">
        <label class="layui-form-label"></label>
        <div class="layui-input-inline">
          <input type="button" lay-submit lay-filter="submit_resale" value="确认" class="layui-btn">
        </div>
      </div>
    </div>
  </div>
</script>
<script>
  layui.data.sendParams = function (obj) {
    layui.use([], function () {
      let form = layui.form
        , laydate = layui.laydate

      form.render()
    })
  }
</script>
